import Vue from 'vue';
import ScanPayBox from './index.vue'

export const showScanBox = (params = {}) => {
    const ScanPanelConstructor = Vue.extend(ScanPayBox);
    const instance = new ScanPanelConstructor({
        propsData: {
            showScanBox: true,
            ...params
        }
    });
    instance.$mount();
    document.body.appendChild(instance.$el);
}